from django.contrib import admin

from .models import Video, Url


class UrlInline(admin.TabularInline): # StackedInline表格多行 TabularInline表格单行
    model = Url
    extra = 3


class VideoAdmin(admin.ModelAdmin):
    inlines = [UrlInline]


admin.site.register(Video, VideoAdmin)
